package com.example.wechathook;

import com.example.wechathook.hook.LauncherUIHook;
import com.example.wechathook.hook.MessageUnRecalledHook;

import de.robv.android.xposed.IXposedHookLoadPackage;
import de.robv.android.xposed.callbacks.XC_LoadPackage.LoadPackageParam;

public class Main implements IXposedHookLoadPackage {

	private static final String WechatPackageName = "com.tencent.mm";

	@Override
	public void handleLoadPackage(LoadPackageParam lpparam) throws Throwable {
		String pkgName = lpparam.packageName;
		if (!pkgName.equals(WechatPackageName)) {
			return;
		}

		new MessageUnRecalledHook().hook(lpparam);
		
		new LauncherUIHook().hook(lpparam);

	}
}
